﻿using GetMan.Core.Extensions;
using System;
using System.Globalization;
using System.Windows.Data;

namespace GetMan.Converters
{
    public class BooleanShowStringConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return value.ToBool() ? parameter : string.Empty;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
